<template>
	<view class="container">
		<uni-section title="学生姓名" sub-title="" type="square">
			<view> {{data.name}} </view>
		</uni-section>
		<uni-section title="学生密码" sub-title="" type="square">
			<view> {{data.password}} </view>
		</uni-section>
		<uni-section title="学生邮箱" sub-title="" type="square">
			<view> {{data.email}} </view>
		</uni-section>
		<uni-section title="学生电话" sub-title="" type="square">
			<view> {{data.telephone}}</view>
		</uni-section>
		<uni-section title="学生学院" sub-title="" type="square">
			<view>{{data.department}}</view>
		</uni-section>
		<uni-section title="学生专业" sub-title="" type="square">
			<view>{{data.major}}</view>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				"data": {
					
				}
			}
		},
		methods: {

		},
		onLoad(id) {
			console.log(id);
			uni.request({
				url: 'http://localhost:8090/freshmenapp/classmate/findone',
				method: 'POST',
				data: {
					"id": id.id
				},
				success: res => {
					console.log(res);
					this.data = res.data.data
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
	.container {
		padding: 10px;
		font-size: 14px;
		line-height: 24px;
	}
</style>